package com.hujiheng.paike.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    private int teacherId;
    @NotBlank(message = "姓名不能为空")
    private String teacherName;
    private int courseId;

    public Teacher(String teacherName, int courseId) {
        this.teacherName = teacherName;
        this.courseId = courseId;
    }
}
